<form data-auto-form action="{:request()->url()}"  method="post">
    <input type="hidden" name="id" value="{$model.id|default=''}">
    {foreach $nodes as $item}
    <div class="form-group">
        <label class="col-xs-12" for="name">{$item.title}</label>
        {if isset($item._sub_) AND count($item._sub_)}
            {foreach $item._sub_ as $sub}
            <label class="lyear-checkbox checkbox-inline checkbox-primary">
                <input type="checkbox" name="urls[]" value="{$sub.node}" {if $sub.checked}checked{/if}><span>{$sub.title}</span>
            </label>
            {/foreach}
        {/if}
    </div>
    {/foreach}
</form>